﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:drawing="clr-namespace:DeepEarth.Toolkit.Drawing">

    <Style TargetType="drawing:DrawPointStart">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="drawing:DrawPointStart">
                    <Grid VerticalAlignment="Center" HorizontalAlignment="Center" Width="16" Height="16" Cursor="Hand">
                        <Ellipse Fill="#FFFF0000" Stroke="#FF000000"/>
                        <Ellipse Fill="#FF000000" Stroke="#FF000000" VerticalAlignment="Center" HorizontalAlignment="Center" Width="8" Height="8"></Ellipse>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="drawing:DrawPointMid">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="drawing:DrawPointMid">
                    <Grid VerticalAlignment="Center" HorizontalAlignment="Center" Width="10" Height="10" Cursor="Hand">
                        <Ellipse Fill="#770000FF" Stroke="#FF000000"/>
                        <Ellipse Fill="#77000000" Stroke="#FF000000" RenderTransformOrigin="0.5,0.5" VerticalAlignment="Center" HorizontalAlignment="Center" Width="5" Height="5">
                            <Ellipse.RenderTransform>
                                <TransformGroup>
                                    <TranslateTransform X="-0.5" Y="-0.5"/>
                                </TransformGroup>
                            </Ellipse.RenderTransform>
                        </Ellipse>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="drawing:DrawPoint">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="drawing:DrawPoint">
                    <Grid VerticalAlignment="Center" HorizontalAlignment="Center" Width="10" Height="10" Cursor="Hand">
                        <Ellipse Fill="#FFFDFF00" Stroke="#FF000000"/>
                        <Ellipse Fill="#FF00FF00" Stroke="#FF000000" RenderTransformOrigin="0.5,0.5" VerticalAlignment="Center" HorizontalAlignment="Center" Width="5" Height="5">
                            <Ellipse.RenderTransform>
                                <TransformGroup>
                                    <TranslateTransform X="-0.5" Y="-0.5"/>
                                </TransformGroup>
                            </Ellipse.RenderTransform>
                        </Ellipse>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>